package csu.web.credit_bank.mapper;

import csu.web.credit_bank.pojo.Articles;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

/**
* @author 于欣淇
* @description 针对表【articles(文章表)】的数据库操作Mapper
* @createDate 2025-07-01 19:12:52
* @Entity csu.web.credit_bank.pojo.Articles
*/
public interface ArticlesMapper extends BaseMapper<Articles> {
    List<Articles> getHotArticlesInLast24Hours(@Param("twentyFourHoursAgo") LocalDateTime twentyFourHoursAgo);
    List<Articles> selectArticlesWithCommentCount(@Param("id") String id);
}




